package cn.billy.basic.query;

import lombok.Data;

/**
* @Description: 公共条件类
* @Author: Billy
* @Version: 1.0
* @Date:  2022/6/21 21:25
*/
@Data
public class BaseQuery {

    // 1.当前页码
    private Integer currentPage = 1;

    // 2.当前页展示条数
    private Integer pageSize = 5;


    public Integer getStart(){
        return (this.currentPage - 1) * this.pageSize;
    }
    // 高级查询字段
    private String keyword;
}
